from django.db import models
from common.base_model import BaseModel


# Create your models here.
class Manager(BaseModel):
    username = models.CharField(primary_key=True, max_length=36)
    password = models.CharField(max_length=50, blank=True, null=True)


class Department(BaseModel):
    id = models.CharField(primary_key=True, max_length=36)
    department_name = models.CharField(max_length=100)
    role = models.IntegerField(blank=True, null=True)
    area = models.IntegerField(blank=True, null=True)
    create_user = models.CharField(max_length=20, blank=True, null=True)
    create_time = models.DateTimeField(blank=True, null=True)
    update_time = models.DateTimeField(blank=True, null=True)
    update_user = models.CharField(max_length=20, blank=True, null=True)